from lib.handler.logger_handler import LoggerHandler
from lib.property.logger_property import LoggerProperty


class Logger(object):
    def __init__(self, class_name, _type=LoggerProperty.DEFAULT):
        self.class_name = class_name
        self.type = _type
        self.logger = None

    def info(self, msg, *args, **kwargs):
        LoggerHandler.logger.get(self.type).info(msg, *args, **kwargs)
        # self.logger.info(msg, *args, **kwargs)

    def debug(self, msg, *args, **kwargs):
        LoggerHandler.logger.get(self.type).debug(msg, *args, **kwargs)
        # self.logger.debug(msg, *args, **kwargs)

    def error(self, msg, *args, **kwargs):
        LoggerHandler.logger.get(self.type).debug(msg, *args, **kwargs)
        # self.logger.debug(msg, *args, **kwargs)
